<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<jsp:useBean id="user" class="de.graffiti.beans.Login" scope="session"/>
<jsp:setProperty name="user" property="*"/>

<html>
<head>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>WandMaler 3000</title>
</head>
<body id="loginseite">
<div id="wrapper">
	<div id="kopfbereich">
	<h1>Login -- aktuelle Version V1.01</h1>
	<p>Dies ist die Login Seite</p>
	</div>
	<div id="formularbereich">	
		<f:view>
			<h:form>									
				<h:messages/>
				<h:outputText value="Benutzer:" />
				<h:inputText id="userid" value="#{loginBean.name}" required="true">
					<f:validateLength minimum="2" maximum="15"/>
				</h:inputText>
				<br>				
				<h:outputText value="Passwort:" />
				<h:inputSecret id="password" value="#{loginBean.password}" required="true">
					<f:validateLength minimum="4" maximum="15"/>
				</h:inputSecret>
				<h:commandButton value="Login" action="#{loginBean.login}" />
				<br>
				<br>
</h:form>
<h:form>
<h:commandButton value="registrieren" action="#{loginBean.register}"></h:commandButton><br></br>
</h:form>           
</f:view>
</div>
</div>
</body>
</html>
